import request from '@/utils/request'

export const getDepartments = () => request.get('/company/department')

// 根据id根据部门  接口是根据restful的规则设计的   删除 delete
//  新增 post  修改put 获取 get
export const delDepartment = id => request.delete(`/company/department/${id}`)

// 新增接口
export const addDepartment = (data) => request.post('/company/department', data)
